#!/user/bin/python
# -*- coding: UTF-8 -*-

# 题目：按相反的顺序输出列表的值。

# function 1
a = ['one', 'two', 'three']
for i in a[::-1]:
    print i,
print

# function 2
a = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten']
def reverse(a):
    if len(a) <= 1:
        print a[0],
    else:
        print a[-1],
        reverse(a[0:-1])
reverse(a)
print

# function 3
numlist = [100,1,23,4,5,6,6,7,7,8]
for i in range(0,len(numlist)) :
    index = len(numlist)-i-1
    print numlist[index],
print